package edu.unmsm.ocaa.sisocaa.common.util;

import java.util.ArrayList;
import java.util.Date;

import javax.faces.model.SelectItem;

public class Utilidades {

	public ArrayList<SelectItem> opcRespCuest;
	public ArrayList<SelectItem> ObtenerListaOpciones() throws Exception{
		try {
			setOpcRespCuest(new ArrayList<SelectItem>());
			getOpcRespCuest().add(new SelectItem(1,"SI"));
			getOpcRespCuest().add(new SelectItem(0,"NO"));			
		} catch (Exception e) {
			// TODO: handle exception
		}return getOpcRespCuest();
	}
	public void setOpcRespCuest(ArrayList<SelectItem> opcRespCuest) {
		this.opcRespCuest = opcRespCuest;
	}
	public ArrayList<SelectItem> getOpcRespCuest() {
		return opcRespCuest;
	}
	static public Date getFechaHora()
	{	Date fec=null;
		fec = new Date();
		return fec;
	}
	
}
